<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta charset="utf-8">
<meta name="viewport"
	content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
<meta name="format-detection"
	content="telephone=no,email=no,date=no,address=no">
<title></title>
<link rel="stylesheet" type="text/css" href="../css/aui.css" />
<link rel="stylesheet" type="text/css"
	href="../css/aui-pull-refresh.css" />
<style>
.aui-content-padded {
	padding: 0.75 rem;
	background-color: #ffffff;
	margin-top: 0.75 rem;
}

.aui-card-list-footer>* {
	position: absolute;
	right: 30px;
	bottom: 10px;
}
</style>
</head>
<body>

	<header class="aui-bar aui-bar-nav aui-bar-warning" id="aui-header">
	<a class="aui-pull-left" onclick="window.history.back(-1);"> <span
		class="aui-iconfont aui-icon-left"></span>
	</a>
	<div class="aui-title"></div>
	<a class="aui-pull-right"> </a> </header>
	
	<section class="aui-content-padded">
			<div class="aui-card-list">
				<div class="aui-card-list-header">
					<div style=" margin: 0 auto; " id="noticeTitle"></div>
				</div>
				<div class="aui-card-list-content-padded" id="noticeContent"></div>
				<div class="aui-card-list-footer">
					<div>
						<p id="createPeople"></p>
						<p id="releaseDate"></p>
					</div>
				</div>
			</div>
		</section>
		<div class="aui-toast"  style="display:none;" id="loading">
			<div class="spinner aui-toast-content">
				<div class="spinner-container container1">
					<div class="circle1"></div>
					<div class="circle2"></div>
					<div class="circle3"></div>
					<div class="circle4"></div>
				</div>
				<div class="spinner-container container2">
					<div class="circle1"></div>
					<div class="circle2"></div>
					<div class="circle3"></div>
					<div class="circle4"></div>
				</div>
				<div class="spinner-container container3">
					<div class="circle1"></div>
					<div class="circle2"></div>
					<div class="circle3"></div>
					<div class="circle4"></div>
				</div>
			</div>
		</div>
			
</body>
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript">
 	//得到选择机会信息的id
	var id = "${param.id}";
	//初始方法
	$(function() {
		$.ajax({
			url : '${pageContext.request.contextPath}/editNews.do?id='+ id,
			type : "POST",
			dataType : "json",
			success : function(data) {
				var json  = data;
				if (json.code == 0) {
					if (json.news != "" && json.news != null) {
						$(".aui-title").text(json.news.newsTitle);
						$("titel").html(json.news.newsTitle);
						$("#noticeTitle").html(json.news.newsTitle);
						$("#noticeContent").html(json.news.newsContent);
						//$("#createPeople").html(ret.news.createPeople);
						$("#releaseDate").html(toDate(json.news.createDate));
					}
				} else {
					alert("暂无数据!");
				}
			}
		});
	});

	
</script>
</html>